<?php
declare (strict_types = 1);

namespace app\product\model;

/**
 * @mixin \think\Model
 */
class ProductAttrVariousModel extends BaseModel
{
    protected $table = 'tb_product_attr_various';
    protected $append = ['attr_sku_id','attr_value_id'];

    const WITH_LINK = 'link';
    public function link(){
        return $this->hasOne('app\product\model\ProductAttrVariousValueLinkModel', 'attr_sku_id')->bind(['attr_sku_id','attr_value_id']);
    }
}
